import json
data = [{"name": "zhangsan", 'age': 19},
        {"name": "zhangsan", 'age': 19}]
# 将python的字典转换成json字符串
json_str = json.dumps(data)
print(type(json_str))
# 将json字符串转换成字典
python_dict = json.loads(json_str)
print(type(python_dict))
